<?php
/**
 * Created by PhpStorm.
 * User: 86151 - 姜伟
 * Date: 2022/8/31 16:53.
 */

namespace Xinyu\Gen\Core\Libs;

class BaseClient
{
    // 返回失败
    public function error($msg = '生成失败')
    {
        return [
            'code' => -1,
            'msg' => $msg,
        ];
    }

    // 返回成功
    public function success($msg = '生成成功')
    {
        return [
            'code' => 1,
            'msg' => $msg,
        ];
    }
}
